<?php
namespace app\common\validate;


use think\Validate;

class Gg extends Validate
{
    protected $rule = [
        'con|文字内容' => 'require',
        'url|跳转链接' => 'require|url',
        'color|字体颜色' => 'require',
        'enddate|到期时间' => 'require'
    ];

    protected $scene = [
        'add1' => ['con'],
        'add2' => ['con','url','color','date'],
        'add3' => ['con','url']
    ];
}